#/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.append('../../../icafe')
import parameters

class Section():
    
    def __init__(self,sid):
        
        self.id = sid
        
    def integrate(self):
        
        pass

    def getArgs(self):
        
        pass
## 3D sections:
class Solid(Section):
    
    def __init__(self,sid):
        
        Section.__init__(self,sid)
    
class Homogeneous3D(Solid):
    
    def __init__(self,sid):
        
        Solid.__init__(self,sid)

    def getArgs(self):
        
        pass

class Layup3D(Solid):
    
    def __init__(self,sid):
        
        Solid.__init__(self,sid)    

## 2D sections:
class Shell(Section):
    
    def __init__(self,sid,th):
        
        Section.__init__(self,sid)
        self.thickness = th
     
    def getArgs(self):
        
        return [self.thickness]
       
class Homogeneous2D(Shell):
    
    def __init__(self,sid,th):
        
        Shell.__init__(self,sid,th)
        
    
class Layup2D(Shell):
    
    def __init__(self,sid,th):
    
        Shell.__init__(self,sid,th)
    
    def getArgs(self):
    
        return [self.thickness]
## 1D sections:
class Bar(Section):
    
    def __init__(self, S):
        
        Section.__init__(self,sid)
        self.area = S

class Beam(Section):
    
    def __init__(self, S, Ix, Iy, Iz, orientation):
        
        Section.__init__(self,sid)
        self.area = S
        self.Ix = Ix
        self.Iy = Iy
        self.Iz = Iz
        
        